package cn.summit;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @author summit
 * @since 2020/12/18 23:12
 */
public class Md5Test {

    public static void main(String[] args) {
        Md5Hash md5Hash = new Md5Hash("123456");
        System.out.println(md5Hash.toHex());
        //e10adc3949ba59abbe56e057f20f883e

        Md5Hash md5Hash1 = new Md5Hash("123456", "salt");
        System.out.println(md5Hash1.toHex());
        // f51703256a38e6bab3d9410a070c32ea

        Md5Hash md5Hash2 = new Md5Hash("123456", "salt", 1024);
        System.out.println(md5Hash2.toHex());
        // a18d2133f593d7b0e3ed488560404083

    }
}


